package com.fang.rocketmq;

import com.fang.rocketmq.producer.TestProducer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author fanglingxiao
 * @createDateTime 2022/5/12 12:55 上午
 */
@SpringBootApplication
public class RocketMqTestApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(RocketMqTestApplication.class, args);
        TestProducer producer = run.getBean(TestProducer.class);
        producer.send("Test-RocketMQ", "Hello RocketMQ");
    }
}
